<?php

class TestController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
		echo 1;
    }
	public function chatAction()
	{
		echo "IM in the chat method ";
		$this -> view -> assign('msg','this is mesasge');
		$regist = new Application_Model_Register();
		$regist -> createUser(array(
			'name' =>'phu',
			'age'  => 12
			));
	}
	public function updateAction(){
		$regist = new Application_Model_Register();
		$regist -> updateUser(array(
			'name'=> "co phu oi"
		),1);
		
	}
	public function deleteAction(){
		$regist = new Application_Model_Register();
		$regist -> deleteUser(1);
		
	}
	public function otherAction(){
		echo 222;
		
	}
	public function formAction(){
		$form = new Application_Form_Register();
		$this->view->form= $form;
	}
	



}

